home *** CD-ROM | disk | FTP | other *** search
/ New Star Software Collection / NSS_Collection.iso / 3-302 proto gen c & cpp genera / 1.ima / README.TXT < prev    next >
Text File  |  1995-08-12  |  14KB  |  361 lines

  1.        Welcome to ProtoView's ProtoGen Application Code Generator
  2.        ----------------------------------------------------------
  3.  
  4. Read this README file for the latest, important information about
  5. the ProtoGen software and manual.
  6.  
  7. TABLE OF CONTENTS
  8. -----------------
  9. 1. How to Get Help
  10. 2. Installation
  11. 3. Features
  12. 4. Other Information
  13. 5. Defining your own editor
  14. 6. Windows 3.1 and Strict compiling
  15. 7. Other Products Offered From ProtoView
  16.  
  17.  
  18. 1. HOW TO GET HELP
  19.    ---------------
  20. If you have any problems, read this file in its entirety.  If you
  21. still have a question and need assistance, help is available from
  22. the following sources:
  23.  
  24. a. Type GO BPROGB on the CompuServe for access to the Borland
  25.    forums, which consist of libraries of technical information and
  26.    answers to common questions.
  27.  
  28. b. Check with your local software dealer or users' group.
  29.  
  30. c. Call the Borland Technical Support Department at 
  31.    (408) 461-9133 for help with an urgent problem that cannot be
  32.    solved by one of the previously mentioned sources.  Please
  33.    sign and return the license agreement that came with ProtoGen,
  34.    and have the following information ready before calling:
  35.  
  36.    1.  The product name and serial number on your original
  37.        distribution disk.  Please have your serial number ready
  38.        or we can't process your call.
  39.  
  40.    2.  The product version number.  To find the version number,
  41.        invoke ProtoGen and select Help|About ProtoGen.
  42.  
  43.    3.  The brands and model numbers of your computer and
  44.        additional hardware.
  45.  
  46.    4.  The operating system and version number installed on your
  47.        computer.  Find the version number by typing VER at the
  48.        DOS prompt.
  49.  
  50. 2. INSTALLATION
  51.    ------------
  52.  
  53. To start the installation, execute the "Setup" program on the
  54. ProtoGen installation disk.
  55.  
  56. For example, if you're installing from drive A, perform the
  57. following steps:
  58.  
  59.    1.  At the A:\> prompt, type "WIN SETUP" <ENTER>.
  60.  
  61.    2.  Enter the destination directory for ProtoGen and press
  62.        <OK>.
  63.  
  64.    3.  After Setup transfers files to the hard disk, Setup asks
  65.        if it should add the PV directory to your path statement
  66.        in the AUTOEXEC.BAT file.  If you've already added the
  67.        PROTOGEN directory to your path, select <Cancel>;
  68.        otherwise, select <OK>.
  69.  
  70.    4.  After installation, make sure your DOS path statement
  71.        includes the PV directory, so the DLL and executable files
  72.        can be found.  If you allowed the Install program to
  73.        modify the AUTOEXEC.BAT, rebooting sets the path properly.
  74.  
  75. Read the rest of this README file to get further information
  76. about this release before installing ProtoGen.
  77.  
  78. 3.  FEATURES
  79.     --------
  80. ProtoGen offers the following features and benefits:
  81.  
  82. o  Allows various Windows resources to be laid out and connected
  83.    into a prototype user interface.
  84.  
  85. o  Allows easy creation of menu items, separators, menu popups,
  86.    and accelerators, which are implicitly tied to a menu item.
  87.  
  88. o  Demonstrates in test mode how the completed application will
  89.    look.
  90.  
  91. o  Generates Borland C++ OWL code or ANSI C code for Windows, and
  92.    creates associated files needed to compile the generated
  93.    application, including make files and header files.
  94.  
  95. o  Creates project files that can be used to build C and C++
  96.    programs in Borland C++ for Windows.
  97.  
  98. o  Gives you the option of creating a customized main window or a
  99.    a standard main window, which includes a system icon and
  100.    minimize and maximize buttons.
  101.  
  102. o  Displays a user-defined menu of frequently used tools for easy
  103.    access.
  104.  
  105. o  Provides "regeneration brackets" to prevent ProtoGen from
  106.    overwriting user-modified codes.
  107.  
  108.  
  109. 4. OTHER INFORMATION
  110.    -----------------
  111.  
  112. o  System Error Message
  113.  
  114.    When loading ProtoGen, a "System Error" message might appear
  115.    for one of the following reasons:
  116.  
  117.        - The DOS path has not been set correctly.
  118.          Remedy:  Exit Windows and add the ProtoGen directory to
  119.                    the DOS path.
  120.  
  121.        - The working directory is no longer valid.
  122.          Remedy:  Delete the PV.INI file in the WINDOWS directory.
  123.  
  124. o  Source Code Comments
  125.  
  126.    ProtoGen uses comments to delineate regeneration brackets. 
  127.    For example, suppose a user added the following global
  128.    variable Foo between brackets:
  129.  
  130.        //REGEN_VARIABLES
  131.  
  132.             int Foo=1;
  133.  
  134.        //REGEN_VARIABLES
  135.  
  136.    The brackets protect Foo from destruction if the user
  137.    interface prototype is regenerated to add or change menu
  138.    features.  If one of the brackets is deleted, Foo is lost when
  139.    the prototype is regenerated.  All regeneration brackets start
  140.    with the prefix REGEN_. Delete brackets only after the code is
  141.    frozen.
  142.  
  143. o  .PVA File Modification
  144.  
  145.    Don't modify .PVA files directly.  Incorrect data can lead to
  146.    an "Unrecoverable Application Error".  Let ProtoGen modify
  147.    these files.
  148.  
  149. o  Project Files for C++ and ANSI C
  150.  
  151.    When compiling projects under Borland C++ for Windows you
  152.    should turn  on the Generate COMDEFS switch under Compiler |
  153.    Advanced Code Generation.  This option can be found on TCW's
  154.    main menu.
  155.  
  156. o  Working Directory
  157.  
  158.    The "working directory" is the directory where ProtoGen's
  159.    Windows resources are kept.  These include dialog resources,
  160.    menu resources, bitmaps, and icon files.  ProtoGen needs to
  161.    draw upon the resources within this directory to build an
  162.    application.
  163.  
  164.    To use resources in other directories, the ICON and BITMAP
  165.    files have to be copied by the user if the Dialog Resource is
  166.    using an icon control or Borland Custom control that uses a
  167.    bitmap.  ProtoGen attempts to copy all resource files to the
  168.    current working directory. ProtoGen won't copy the associated
  169.    files that might be used within a .DLG or .RC file.
  170.  
  171. o  Test Mode
  172.  
  173.    Test mode shows the general flow of the user-designed screen,
  174.    demonstrating how data objects might interact.  In test mode,
  175.    there's no minimize button, but the minimize button will be
  176.    present in the generated application along with other standard
  177.    features.
  178.  
  179.    When the application is in test mode, the main ProtoGen window
  180.    is hidden, and you can't see it in the task list for the
  181.    program manager.
  182.  
  183.    When the main window is a dialog box, the created application
  184.    behaves differently than it did in the test mode.
  185.  
  186. o  Tools
  187.  
  188.    Tools launched within ProtoGen don't close upon exiting
  189.    ProtoGen.
  190.  
  191. o  Insufficient Memory or Disk Space
  192.  
  193.    When memory or disk space is low, you might not be able to
  194.    compile a program.  When you shell to DOS from Windows to
  195.    compile the program, a large swap file is needed, which
  196.    reduces available memory. Unload drivers, TSRs, and other
  197.    memory-intensive programs, and try to recompile.
  198.  
  199. o  Setting Up ProtoGen
  200.  
  201.    Perform the following steps to prepare for generating ProtoGen
  202.    code:
  203.  
  204.    1.  Set up the tools you need by selecting Tools|Define Tool
  205.        from the ProtoGen main menu and defining the following
  206.        tools, which reside in the bin directory of either Borland
  207.        C++ or Turbo C++ for Windows unless you specified
  208.        otherwise:
  209.  
  210.              - Resource Editor.  To create Bitmaps, Fonts, and
  211.                Dialogs, select WORKSHOP.EXE.
  212.    2.  Set up appropriate paths for includes and libs.  Select
  213.        Application|Generate from the ProtoGen main menu.  The
  214.        INCLUDE and LIB directories should be searched in order of
  215.        derived class first; consequently, if your Borland C++
  216.        directory is "C:\BC" then you should enter the following
  217.        path in the Include Directory Edit box:
  218.  
  219.           C:\BC\OWL\INCLUDE;C:\BC\CLASSLIB\INCLUDE;C:\BC\INCLUDE
  220.  
  221.        Enter the following in the Library Directory Edit box:
  222.  
  223.           C:\BC\OWL\LIB;C:\BC\CLASSLIB\LIB;C:\BC\LIB
  224.  
  225.        Press <ENTER> as if you were generating code.  When the
  226.        Enter Application Title dialog is displayed, just press
  227.        <Cancel> to cancel generating an application.  Now, you're
  228.        ready to use ProtoGen.
  229.  
  230.    3.  With the make file supplied by Borland, build the
  231.        appropriate versions of .LIB files for Borland classlibs.
  232.        Because Borland C++ and Turbo C++ for Windows are shipped
  233.        with only the small code model versions of the classlibs,
  234.        you'll need to build any other versions you might need.
  235.        See the Borland C++ documentation for more information.
  236.  
  237. o  Inaccuracies in Screens
  238.  
  239.    Because ProtoGen is concerned primarily with the overall
  240.    screen flow and interaction with other Window resources, some
  241.    screens might not be accurately portrayed.  For example, a
  242.    button may appear slightly larger than its actual size.
  243.  
  244. o  Custom Colors
  245.  
  246.    To define a custom color for the client area of the main
  247.    window from the Edit|Window Colors menu, select a "Basic
  248.    Color" first, modify the color, and press the <Add to Custom
  249.    Colors> button. The custom color is displayed in the first
  250.    available blank square.
  251.  
  252. o  Linking Dialog Resources
  253.  
  254.    You can't link a dialog resource to more than one menu item. 
  255.    If you need to use the same dialog, copy the dialog resource
  256.    and rename it. Don't change the name of a dialog that's linked
  257.    to a menu item.
  258.  
  259. o  Putting Away a User-defined Dialog
  260.  
  261.    When you click on a menu item in the prototype menu, ProtoGen
  262.    asks you what DLG file you want to attach to it.  (A DLG file
  263.    is equivalent to an RC file).  When you click a dialog control
  264.    like the <OK> button, ProtoGen thinks you want to attach a
  265.    dialog to that control.  To put away the dialog, either double
  266.    click the client area of the dialog or press <Alt+F4>.
  267.  
  268. o  Using an RC File as a Menu Resource File.
  269.  
  270.    When naming an RC file to be used as the menu resource file
  271.    (MNU), don't use the application file name. If the menu
  272.    resource file is HELLO.RC, and the name of the application is
  273.    HELLO, ProtoGen overwrites HELLO.RC with its own RC file when
  274.    it generates code.
  275.  
  276.    To help you avoid overwriting files, by default ProtoGen gives
  277.    files an MNU file name extension if you don't enter an
  278.    extension when you save the file from the Menu Designer.
  279.  
  280. o  Nested Dialog Boxes
  281.  
  282.    Don't nest dialog boxes more than nine levels.  More levels
  283.    might cause an Unrecoverable Application Error, because stack
  284.    space is limited.
  285.  
  286. o  Debug Warning Messages
  287.  
  288.    Don't panic if dbWin displays the following error message when
  289.    you're running the Debug Windows Kernel:
  290.  
  291.    "PROTOGEN -> USER PV_WM_KILLFOCUS + 1E: Invalid value 256"
  292.  
  293.    This message is displayed during normal operation with the
  294.    Debug Windows Kernel.
  295.  
  296. o  Compatibility Issues
  297.  
  298.    Many of the message dialog boxes are system modal, which means
  299.    the user can't access other parts of the application until the
  300.    dialog is finished; consequently, ProtoGen might not be
  301.    compatible with programs like Recorder in your Windows
  302.    Accessories Group.
  303.  
  304.    When using a high resolution driver, such as the 1024x768 with
  305.    small fonts, the text in several dialog boxes is truncated. 
  306.    To correct the problem, select a larger font, such as the one
  307.    available with the 1024x768 driver with large fonts.
  308.  
  309. o  Built-in Text Editor
  310.  
  311.    While working in the built-in text editor (which is brought up
  312.    by selecting a menu item from Edit|Edit Resources), if the
  313.    Save As or Open dialog box is displayed, you must first close
  314.    this dialog before selecting File|Close from the ProtoGen
  315.    system menu.
  316.  
  317.  
  318. 5. DEFINING YOUR OWN EDITOR.
  319.    ------------------------
  320.    Edit or create a PV.INI file in your WINDOWS directory, and
  321.    define the TextEditor variable as the executable file name of
  322.    your editor as shown here:
  323.  
  324.    [ViewPaint]
  325.    TextEditor=myeditor.exe
  326.  
  327.    For example, if your editor is Brief, TextEditor=b.exe.
  328.  
  329. 6. WINDOWS 3.1 AND STRICT COMPILING
  330.    --------------------------------
  331.    If you're using Borland C++ and OWL version 3.1 and want to
  332.    generate C or C++ code that conforms to Microsoft's STRICT
  333.    definition, select Application| Generate.  In the Options area
  334.    of the Generate dialog box, select the STRICT checkbox to
  335.    define -DSTRICT and -DWIN31.
  336.  
  337.    To generate STRICT-compliant code that runs under Windows 3.0
  338.    or 3.1, replace the -31 command line switch passed to the rc
  339.    compiler with a -30 switch.
  340.  
  341. 7. OTHER PRODUCTS OFFERED FROM PROTOVIEW
  342.    -------------------------------------
  343.  
  344.    DataTable - Spreadsheet control for Microsoft Windows for the
  345.                C/C++ and Pascal windows programmer.
  346.  
  347.    ProtoView - A screen management facility for Microsoft Windows
  348.                for the C/C++ Windows programmer. Includes 12 new
  349.                Windows controls with built in data validation,
  350.                DDE links, and message handling; a screen painter
  351.                to interactivly design screens and forms with data
  352.                validation, actions, DDE links, custom colors and
  353.                fonts and much more; a dialog class for Object
  354.                Windows Library, and a high-level dynamic link
  355.                library with functions for printing files and
  356.                buffers under Windows; an editor function,
  357.                animation functions and more.  ProtoView works
  358.                with ProtoGen to enhance test mode and ProtoGen's
  359.                code generation capabilities.
  360.  
  361.